import { request } from '@/api/api.js';

export function query(userId, page, size) {
  return request({
    url: 'api/message/history?current=' + page + '&size=' + size + '&user_id=' + userId,
    method: 'get'
  })
}

export function getConversations() {
  return request({
    url: 'api/message/conversations',
    method: 'get'
  })
}

export default {query, getConversations}